<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>用户添加</title>
</head>
<body>
<h1>用户添加</h1>
<form action="/addUser" method="post">
    <label for="username">用户名:</label>
    <input type="text" id="username" name="username" required><br><br>
    <label for="password">密码:</label>
    <input type="password" id="password" name="password" required><br><br>
    <label for="email">邮箱:</label>
    <input type="email" id="email" name="email" required><br><br>
    <button type="submit">添加</button>
</form>
<p th:if="${error}" th:text="${error}" style="color: red;"></p>
</body>
</html>